﻿using WMS.FC.Domain.DomainObject.Menu;
using WMS.FC.Domain.DomainObject.System;

namespace WMS.FC.Domain.Service.System.Interface
{
    public interface IGetDictionaryService
    {
        /// <summary>
        /// 获取数据字典
        /// </summary>
        /// <param name="menuId"></param>
        /// <param name="userInfo"></param>
        /// <returns></returns>
        Task<ActionResult<DictionaryDO>> GetDictionary(string menuId, UserInfo userInfo);

        /// <summary>
        /// 获取数据字典
        /// </summary>
        /// <param name="menuConfig"></param>
        /// <param name="userInfo"></param>
        /// <returns></returns>
        Task<ActionResult<DictionaryDO>> GetDictionary(MenuConfigDO? menuConfig, UserInfo userInfo);

        /// <summary>
        /// 获取数据字典类型
        /// </summary>
        /// <param name="userInfo"></param>
        /// <returns></returns>
        Task<ActionResult<DictionaryDO>> GetDictionaryType(UserInfo userInfo);
    }
}
